
/**
 * @description static item on the page
 * @field
 */
var sntEventsHolderObj = new SntEventsHolder();
window.sntEventsHolder = sntEventsHolderObj;


/**
 * @function
 * @description Getting instance of EventsHolder obj
 * @returns and SntEventsHolder object stored in window
 */
function getSntHolderInstance(){
	return window.sntEventsHolder;
}

/**
 * @function
 * @description Get Element By Id (getElementById() internal method) or null. Created for short writing
 * @returns DOM elemnt or null
 */
function $$(id){
	return document.getElementById(id) || null;
}

window.getSntHolderInstance = getSntHolderInstance;
/**
 * @function
 * @description Receive message from any Player engine on the page
 * @param command It's Event ID from list of players engine events
 * @param player Player ID
 * @param args Array with data
 */
function sntReceiveMessage(command, player, args){	
	window.sntEventsHolder.receiveMessage(command, player, args);
}

